// pages/classify/classify.js
const app = getApp();
import http from "../../utils/http";
import util from "../../utils/util";
Page({
	data: {
		checked: false, // 是否同意协议
	},

	onChange(event) {
		this.setData({
			checked: event.detail,
		});
	},
	// 提交订单
	submitOrder() {
		if (!this.data.checked) {
			wx.showToast({
				title: "请先阅读并同意协议",
				icon: "none",
			});
			return;
		}

		// wx.showToast({
		// 	title: "订单提交成功",
		// 	icon: "success",
		// });

		util.skip("/service/cardServiceBuyStatus/cardServiceBuyStatus?id=" + 1);
	},
});
